/**
 * Created by Daniel on 2016/6/12.
 */
var keys = require('./lib/keys');
var redisServer=require( './redis/redisServer' );

exports.updateTribeMemberNum = updateTribeMemberNum;
function updateTribeMemberNum(num,postNum,objectId){
    if(num != ''&& num != null && objectId != ''&& objectId != null){
        var obj ={};
        obj[keys["tribeFeild"]["memberNum"]] = num;
        obj[keys["tribeFeild"]["postNum"]] = postNum;
        redisServer.hmset(keys["tribe"]+objectId,obj,function(error,result){
        })
    }
}